
	
/****** Object:  Stored Procedure [dbo].HistoriesUpdate    Script Date: Monday, July 27, 2009 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spHistoriesUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[spHistoriesUpdate]
GO
			
	
	

	
/******************************************************************************
**		File: 
**		Name: [dbo].spHistoriesUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 7/27/2009 4:18:20 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].spHistoriesUpdate
	@HistoryId int, 
	@ReceiverId int, 
	@SenderId int, 
	@Message nvarchar(200), 
	@CreationDate datetime 
AS

UPDATE [dbo].[Histories] SET
	[ReceiverId] = @ReceiverId,
	[SenderId] = @SenderId,
	[Message] = @Message,
	[CreationDate] = @CreationDate
WHERE
	[HistoryId] = @HistoryId

GO

